﻿using System;

class AppropriateVariableTypes2
{
    /*
        Which of the following values can be assigned to a variable of type float and 
        which to a variable of type double: 34.567839023, 12.345, 8923.1234857, 3456.091?
    */

    static void Main(string[] args)
    {
        String aValue = "34.567839023";
        float aFloat = 34.567839023F;
        Console.WriteLine("The value {0} stored in a float variable: {1}",aValue,aFloat);
        double aDouble = 34.567839023;
        Console.WriteLine("The value {0} stored in a double variable: {1}", aValue, aDouble);

        String bValue = "12.345";
        float bFloat = 12.345F;
        Console.WriteLine("The value {0} stored in a float variable: {1}", bValue, bFloat);
        double bDouble = 12.345;
        Console.WriteLine("The value {0} stored in a double variable: {1}", bValue, bDouble);

        String cValue = "8923.1234857";
        float cFloat = 8923.1234857F;
        Console.WriteLine("The value {0} stored in a float variable: {1}", cValue, cFloat);
        double cDouble = 8923.1234857;
        Console.WriteLine("The value {0} stored in a double variable: {1}", cValue, cDouble);

        String dValue = "3456.091";
        float dFloat = 3456.091F;
        Console.WriteLine("The value {0} stored in a float variable: {1}", dValue, dFloat);
        double dDouble = 3456.091;
        Console.WriteLine("The value {0} stored in a double variable: {1}", dValue, dDouble);
                    
    }
}
